package cate.game.pvp.pointrace.data;

import cate.game.framework.index.IndexedList;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

@NoArgsConstructor
@ToString
@Data
public class PointRaceRankData extends IndexedList<String, PointRaceRank> {

    public PointRaceRank getRankData(int index) {
        if (index >= size()) {
            return null;
        }
        return getValueList().get(index);
    }
    public int size() {
        return getValueList().size();
    }

    public boolean isEmpty() {
        return getValueList().isEmpty();
    }
}
